package net.dopan.pigframe.user.model.entity;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import lombok.*;

import java.io.Serializable;

/**
 * @author wufeihong
 *  活动分类关联表
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode(callSuper = true)
@TableName("activity_concern_classify")
public class ActivityConcernClassify extends Model<ActivityConcernClassify> {

  private static final long serialVersionUID = 1L;

  @TableId(value = "concern_id", type = IdType.AUTO)
  private long concernId;
  @TableId(value = "activity_id", type = IdType.AUTO)
  private long activityId;
  @TableId(value = "classify_id", type = IdType.AUTO)
  private long classifyId;

  @Override
  protected Serializable pkVal() {
    return this.concernId;
  }
}
